<header class="ui-header ui-header-stable ui-border-b">
    <i class="icon-return iconfont icon-back" onclick="window.history.go(-1);"></i>
    <h1>{$data.name|default='全部'}</h1>
    <button class="ui-btn web_index" dindex="{$index}"><eq name="index" value="INDEX">分类<else />首页</eq></button>
</header>
<script type="text/javascript">

	if(window.name != "bencalie"){
		location.reload();
		window.name = "bencalie";
	}else{
		window.name = "";
	}

	//返回首页
	$('.web_index').tap(function(){
		if($(this).attr('dindex') == 'INDEX'){
			window.location.href = "{:U('GoodsClass/index')}";
		}else{
			window.location.href = "{:U('Index/sindex')}";
		}
	});
</script>